import request from '@/utils/request'

// 查询区域线损报表列表
export function listLineLoss(query) {
  return request({
    url: '/energy/lineLoss/list',
    method: 'get',
    params: query
  })
}

// 查询区域线损报表详细
export function getLineLoss(id) {
  return request({
    url: '/energy/lineLoss/' + id,
    method: 'get'
  })
}

// 新增区域线损报表
export function addLineLoss(data) {
  return request({
    url: '/energy/lineLoss',
    method: 'post',
    data: data
  })
}

// 修改区域线损报表
export function updateLineLoss(data) {
  return request({
    url: '/energy/lineLoss',
    method: 'put',
    data: data
  })
}

// 删除区域线损报表
export function delLineLoss(id) {
  return request({
    url: '/energy/lineLoss/' + id,
    method: 'delete'
  })
}

//获取能耗报表
export function getLineLossReportList(query) {
  return request({
    url: '/energy/lineLoss/getLineLossReportList',
    method: 'get',
    params: query
  })
}
